package com.zbkj.service.model.front.req.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
@ApiModel("承享订单归还预约上门取件的请求入参")
public class ReserveRentReturnPickUpReq {

    @NotNull(message = "地址不能为空")
    @ApiModelProperty(value = "地址编号", example = "AD0001")
    private Integer addressId;

    @NotBlank(message = "订单号不能为空")
    @ApiModelProperty(value = "订单编号", example = "SH2024020200001")
    private String orderNo;

    @NotNull(message = "取件日期不能为空")
    @ApiModelProperty(value = "取件日期", example = "2024-02-02")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate pickupDate;

    @NotBlank(message = "预约时间不能为空")
    @ApiModelProperty("预约时间")
    private String pickupCode;

}
